package com.hanthink.system.service.impl.finishtask;

import java.util.List;
import com.hanthink.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hanthink.system.mapper.finishtask.EmOutgoingQualityDongMapper;
import com.hanthink.system.domain.finishtask.EmOutgoingQualityDong;
import com.hanthink.system.service.finishtask.IEmOutgoingQualityDongService;

/**
 * -Service业务层处理
 * 
 * @author lizhao
 * @date 2023-03-28
 */
@Service
public class EmOutgoingQualityDongServiceImpl implements IEmOutgoingQualityDongService 
{
    @Autowired
    private EmOutgoingQualityDongMapper emOutgoingQualityDongMapper;

    /**
     * 查询-
     * 
     * @param id -ID
     * @return -
     */
    @Override
    public EmOutgoingQualityDong selectEmOutgoingQualityDongById(Long id)
    {
        return emOutgoingQualityDongMapper.selectEmOutgoingQualityDongById(id);
    }

    /**
     * 查询-列表
     * 
     * @param emOutgoingQualityDong -
     * @return -
     */
    @Override
    public List<EmOutgoingQualityDong> selectEmOutgoingQualityDongList(EmOutgoingQualityDong emOutgoingQualityDong)
    {
        return emOutgoingQualityDongMapper.selectEmOutgoingQualityDongList(emOutgoingQualityDong);
    }

    @Override
    public List<EmOutgoingQualityDong> selectEmOutgoingQualityDongListnum(EmOutgoingQualityDong emOutgoingQualityDong)
    {
        return emOutgoingQualityDongMapper.selectEmOutgoingQualityDongLisnum(emOutgoingQualityDong);
    }


    /**
     * 新增-
     * 
     * @param emOutgoingQualityDong -
     * @return 结果
     */
    @Override
    public int insertEmOutgoingQualityDong(EmOutgoingQualityDong emOutgoingQualityDong)
    {
        emOutgoingQualityDong.setCreateTime(DateUtils.getNowDate());
        return emOutgoingQualityDongMapper.insertEmOutgoingQualityDong(emOutgoingQualityDong);
    }

    /**
     * 修改-
     * 
     * @param emOutgoingQualityDong -
     * @return 结果
     */
    @Override
    public int updateEmOutgoingQualityDong(EmOutgoingQualityDong emOutgoingQualityDong)
    {
        return emOutgoingQualityDongMapper.updateEmOutgoingQualityDong(emOutgoingQualityDong);
    }

    /**
     * 批量删除-
     * 
     * @param ids 需要删除的-ID
     * @return 结果
     */
    @Override
    public int deleteEmOutgoingQualityDongByIds(Long[] ids)
    {
        return emOutgoingQualityDongMapper.deleteEmOutgoingQualityDongByIds(ids);
    }

    /**
     * 删除-信息
     * 
     * @param id -ID
     * @return 结果
     */
    @Override
    public int deleteEmOutgoingQualityDongById(Long id)
    {
        return emOutgoingQualityDongMapper.deleteEmOutgoingQualityDongById(id);
    }
}
